Revert "headerbar: Avoid allocating 0 visible children"
authorTimm Bäder <mail@baedert.org>
Mon, 28 Aug 2017 14:58:48 +0000 (16:58 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 28 Aug 2017 15:50:34 +0000 (17:50 +0200)
This reverts commit 8c0e5adaab3f38de31d44dd50bcc8179b17c8b4a.

This is actually needed since GtkHeaderBar will allocate and snapshot
widget that coun_visible_children does not consider.

gtk/gtkheaderbar.c

index bfaf41bbc2fe475b60c8257f4ef9966667514640..5b8ca74abd770ca17707e6cb0866b75a52f864f6 100644 (file)
@@ -932,10 +932,6 @@ gtk_header_bar_size_allocate (GtkWidget           *widget,
 
   direction = gtk_widget_get_direction (widget);
   nvis_children = count_visible_children (bar);
-
-  if (nvis_children == 0)
-    return;
-
   sizes = g_newa (GtkRequestedSize, nvis_children);
 
   width = allocation->width - nvis_children * priv->spacing;